﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;
namespace IHISCETeim.BLL
{
    public   class SAPDfctPrdController
    {
        public static SAPDfctPrdInfo GetList(int DfctID)
        {
            return CBO.FillObject<SAPDfctPrdInfo>(SAPDfctPrdDAL.GetList(DfctID));
        }
        public static DataTable GetPagination(string whereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return SAPDfctPrdDAL.GetPagination(whereSql, PageIndex, PageSize, Sort, ref TotalCount);
        }
        public static int AddFctry(SAPDfctPrdFctryInfo obj)
        {
           return SAPDfctPrdDAL.AddFctry(obj);
        }
        public static bool DeleteFctry(int ID)
        {
            return SAPDfctPrdDAL.DeleteFctry(ID);
        }
        public static List<SAPDfctPrdFctryInfo> GetFctryAll(int DfctID, short type)
        {
            return CBO.FillCollection<SAPDfctPrdFctryInfo>(SAPDfctPrdDAL.GetFctryAll(DfctID, type));
        }
    }
}
